#ifndef __NODE_H__
    #define __NODE_H__

    #include <string>

    using namespace std;

typedef struct node {
  int next;
  int prev;
  struct item *child;
  int parent;
  char *content;
}node;

typedef struct item {
  struct item *parent;
  struct item *child;
  struct item *next;
  struct item *prev;
  int count;
  int len;
  char *content;
}item;

#endif
